import type { RouteRecordRaw } from 'vue-router';

export const staticRoutes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: () => import('../views/home/home.vue'),
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/login/login.vue')
    },
    {
        path: '/search',
        name: 'search',
        component: () => import('../views/search/search.vue')
    },
    {
        path: '/ranklist',
        name: 'ranklist',
        component: () => import('../views/ranklist/ranklist.vue')
    },
    {
        path: '/searchResult',
        name: 'searchResult',
        component: () => import('../views/searchResult/searchResult.vue') 
    },
    {
        path: '/detail',
        name: 'detail',
        component: () => import('../views/detail/detail.vue') 
    },
    {
        path:'/category',
        name: 'category',
        component: () => import('../views/category/category.vue') 
    },
    {
        path: '/listening',
        name: 'dlisting',
        component: () => import('../views/listening/listening.vue') 
    },
    // 重定向
    {
        path: '/',
        redirect: '/home'
    }

]


